package com.cy.server.service;

import com.cy.server.dto.DepartmentDto;
import com.cy.server.pojo.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cy.server.pojo.RespBean;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiShaoZhuo
 * @since 2021-04-26
 */
public interface IDepartmentService extends IService<Department> {


    /**
    * @Description: 部门信息分页
    * @Param: departmentDto
    * @return:
    * @Author: LiShaoZhuo
    * @Date: 2021/4/30
    */
    PageInfo<Department> selectAllDepartments(DepartmentDto departmentDto);

    /**
    * @Description: 新增部门信息
    * @Param:
    * @return:
    * @Author: LiShaoZhuo
    * @Date: 2021/4/30
    */
    RespBean addDepartment(Department department);

    /**
    * @Description: 删除部门信息
    * @Param:
    * @return:
    * @Author: LiShaoZhuo
    * @Date: 2021/4/30
    */
    RespBean deleteDepartment(Integer id);

    /**
    * @Description: 查询所有部门信息
    * @Param:
    * @return:
    * @Author: LiShaoZhuo
    * @Date: 2021/5/6
    */
    List<Department> getAllDepartments();
}
